package com.zscat.mallplus.qsg;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("qsg_meal")
public class QsgMeal implements Comparable<QsgMeal> {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String mealName;

    private Integer duration;

    private BigDecimal price;

    private Integer isSale;

    private Date useTime;

    private Date createDatetime;

    private String comment;

    private String endTime;

    private Integer storeId;

    private Integer integral;

    private Integer isXufei;

    @TableField(value = "meituan_dealid")
    private String meituanDealId;

    private String startTime;

    private Integer isSpecialTime;

    @Override
    public int compareTo(QsgMeal o) {
        return this.duration - o.getDuration();
    }
}